package com.itheima.stock.controller;

import com.itheima.stock.service.MarketService;
import com.itheima.stock.common.domian.InnerMarket;
import com.itheima.stock.vo.result.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author: siwukun
 * @date: 2022/05/31
 * @description: 国内大盘
 */
@RestController
@RequestMapping("/api/quot/index")
public class MarketCotroller {

    @Autowired
    private MarketService marketService;

    @GetMapping("/all")
    public R<List<InnerMarket>> selectAllMarket(){
        return marketService.querySelectAll();
    }
}
